// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-11-15 16:59:17
// 生成路径: internal/app/system/service/withdraw_records.go
// 生成人：周
// desc:余额提现记录
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"

	"github.com/tiger1103/gfast/v3/internal/app/system/model"
)

type IWithdrawRecords interface {
	List(ctx context.Context, req *model.WithdrawRecordsSearchReq) (res *model.WithdrawRecordsSearchRes, err error)
	GetById(ctx context.Context, Id int) (res *model.WithdrawRecordsInfoRes, err error)
	Add(ctx context.Context, req *model.WithdrawRecordsAddReq) (err error)
	Edit(ctx context.Context, req *model.WithdrawRecordsEditReq) (err error)
	Delete(ctx context.Context, Id []int) (err error)
	// 余额提现记录提现状态：1-待审核  2-已到账 3-审核失败  修改（状态）
	ChangeStatus(ctx context.Context, id int, status int) (err error)
}

var localWithdrawRecords IWithdrawRecords

func WithdrawRecords() IWithdrawRecords {
	if localWithdrawRecords == nil {
		panic("implement not found for interface IWithdrawRecords, forgot register?")
	}
	return localWithdrawRecords
}

func RegisterWithdrawRecords(i IWithdrawRecords) {
	localWithdrawRecords = i
}
